package com.zg.nacos.domain.vo;

import com.zg.common.core.vo.BaseVo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>Description: </p>
 *
 * @author zhanfeng.liang
 * @since 2025/6/26 11:44
 */
@ApiModel(description = "用户登录信息")
@Data
public class LoginVo extends BaseVo {

    @ApiModelProperty(value = "nacosToken")
    private String accessToken;

    @ApiModelProperty(value = "token时长", example = "18000")
    private Integer tokenTtl;

    @ApiModelProperty(value = "是否超级管理员", example = "true")
    private boolean globalAdmin;

    @ApiModelProperty(value = "用户名", example = "18000")
    private String username;

    @ApiModelProperty(value = "用户名对应的namespace", example = "18000")
    private String namespaceId;

    @ApiModelProperty(value = "grafanaToken")
    private String grafanaToken;
}
